package com.killer.com.killer;

import com.killer.pojo.Person;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：Killer
 * @date ：Created in 20-12-25 下午2:27
 * @description：${description}
 * @modified By：
 * @version: version
 */
@RestController
public class HelloController {

	@Autowired
	private Person person;

	public HelloController(){
		System.out.println("实例化了HelloController");
	}

	@RequestMapping("hello")
	public String sayHello() {
		return "hello "+person.getPet().getName();
	}
}
